package com.cliang.service.dao.impl;

import com.cliang.entity.BlogUser;
import com.cliang.service.dao.BlogUserDao;
import com.cliang.service.mapper.BlogUserMapper;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * <p>用户接口实现类</p>
 */
@Repository
public class BlogUserDaoImpl implements BlogUserDao{
    @Resource
    private BlogUserMapper blogUserMapper;

    /**
     * 根据昵称查询用户信息
     * @param nickName
     * @return BlogUser
     */
    @Override
    public BlogUser login(String nickName,String passwd) {
        BlogUser blogUser=new BlogUser();
        blogUser=blogUserMapper.userLogin(nickName,passwd);
        return blogUser;
    }
}
